package YAVMM::Log::Dispatch::Config::Plugin::Syslog;
use Moose::Role;

sub get_syslog_attrs {
    my $self = shift;

    return {
	class     => 'Log::Dispatch::Syslog',
	min_level => $self->settings->get('log syslog', 'min_level') || 'info',
	facility  => $self->settings->get('log syslog', 'facility')  || 'daemon',
	ident     => 'yavmmd',
	format    => '%m',
    }
}

1;

__END__

=head1 NAME

YAVMM::Log::Dispatch::Config::Plugin::Syslog - Configure syslog log dispatcher.

=head1 SEE ALSO

L<Log::Dispatch::Syslog>
